import MyLayout from "@/components/my-layout/index.vue";

import { RouteNames } from "../names";
import { getStorage } from "@/utils";

export const appRoutes = {
    path: "/",
    redirect: "/dashboard",
    meta: { title: "App", icon: "ic:outline-touch-app", alwaysShow: true },
    component: MyLayout,
    children: [
        {
            name: RouteNames.dashboard,
            path: "/dashboard",
            meta: { title: "用户管理", icon: "UserFilled" },
            redirect: "/dashboard",
            children: [
                {
                    name: RouteNames.dashboard,
                    path: "/dashboard",
                    meta: { title: "用户信息", icon: "UserFilled" },
                    component: () => import("@/pages/dashboard/index.vue"),
                },
                {
                    name: RouteNames.addBalanceList,
                    path: "/addBalanceList",
                    meta: {
                        title: "加余额列表",
                        icon: "UserFilled",
                    },
                    component: () => import("@/pages/addBalanceList/index.vue"),
                },
                {
                    name: RouteNames.leaderList,
                    path: "/leaderList",
                    meta: { title: "领导人列表", icon: "UserFilled" },
                    component: () => import("@/pages/leaderList/index.vue"),
                },
                {
                    name: RouteNames.workroomList,
                    path: "/workroomList",
                    meta: { title: "工作室列表", icon: "UserFilled" },
                    component: () => import("@/pages/workroomList/index.vue"),
                },
                {
                    name: RouteNames.allWorkroomReward,
                    path: "/allWorkroomReward",
                    meta: { title: "工作室奖励记录", icon: "UserFilled" },
                    component: () =>
                        import("@/pages/allWorkroomReward/index.vue"),
                },
            ],
        },
        {
            name: RouteNames.allInvest,
            meta: { title: "入金管理", icon: "Tools" },
            path: "/allInvest",
            redirect: "/allInvest",
            children: [
                {
                    name: RouteNames.allInvest,
                    path: "/allInvest",
                    meta: { title: "入金列表", icon: "Tools" },
                    component: () => import("@/pages/allInvest/index.vue"),
                },
                {
                    name: RouteNames.allInvestReward,
                    path: "/allInvestReward",
                    meta: { title: "个人收益列表", icon: "Avatar" },
                    component: () =>
                        import("@/pages/allInvestReward/index.vue"),
                },
                {
                    name: RouteNames.allInvestRefReward,
                    path: "/allInvestRefReward",
                    meta: { title: "团队收益列表", icon: "UserFilled" },
                    component: () =>
                        import("@/pages/allInvestRefReward/index.vue"),
                },
            ],
        },
        {
            name: RouteNames.orderList,
            path: "/orderList",
            meta: { title: "加时赛", icon: "Menu" },
            redirect: "/orderList",
            children: [
                {
                    name: RouteNames.orderList,
                    path: "/orderList",
                    meta: { title: "订单列表", icon: "Menu" },
                    component: () => import("@/pages/orderList/index.vue"),
                },
                {
                    name: RouteNames.allOrderItem,
                    path: "/allOrderItem",
                    meta: { title: "加时赛列表", icon: "Histogram" },
                    component: () => import("@/pages/allOrderItem/index.vue"),
                },
            ],
        },

        {
            name: RouteNames.allRankPlayer,
            path: "/allRankPlayer",
            meta: { title: "游戏管理", icon: "StarFilled" },
            redirect: "/allRankPlayer",
            children: [
                {
                    name: RouteNames.allRankPlayer,
                    path: "/allRankPlayer",
                    meta: { title: "游戏记录列表", icon: "StarFilled" },
                    component: () => import("@/pages/allRankPlayer/index.vue"),
                },
                {
                    name: RouteNames.allRankRefReward,
                    path: "/allRankRefReward",
                    meta: { title: "游戏邀请奖列表", icon: "HelpFilled" },
                    component: () =>
                        import("@/pages/allRankRefReward/index.vue"),
                },
                {
                    name: RouteNames.allNFT,
                    path: "/allNFT",
                    meta: { title: "NFT记录", icon: "Promotion" },
                    component: () => import("@/pages/allNFT/index.vue"),
                },
            ],
        },

        {
            name: RouteNames.allReceive,
            path: "/allReceive",
            meta: { title: "充提管理", icon: "TrendCharts" },
            redirect: "/allReceive",
            children: [
                {
                    name: RouteNames.allReceive,
                    path: "/allReceive",
                    meta: { title: "bsc充值列表", icon: "TrendCharts" },
                    component: () => import("@/pages/allReceive/index.vue"),
                },
                {
                    name: RouteNames.allReceiveTRX,
                    path: "/allReceiveTRX",
                    meta: { title: "波场充值列表", icon: "Platform" },
                    component: () => import("@/pages/allReceiveTRX/index.vue"),
                },
                {
                    name: RouteNames.allSend,
                    path: "/allSend",
                    meta: { title: "提币列表", icon: "BellFilled" },
                    component: () => import("@/pages/allSend/index.vue"),
                },
            ],
        },

        {
            name: RouteNames.getAllApply,
            path: "/getAllApply",
            meta: { title: "体验券管理", icon: "Ticket" },
            redirect: "/getAllApply",
            children: [
                {
                    name: RouteNames.getAllApply,
                    path: "/getAllApply",
                    meta: { title: "申请列表", icon: "TrendCharts" },
                    component: () => import("@/pages/getAllApply/index.vue"),
                },
                {
                    name: RouteNames.getAllCoupon,
                    path: "/getAllCoupon",
                    meta: { title: "体验券列表", icon: "TrendCharts" },
                    component: () => import("@/pages/getAllCoupon/index.vue"),
                },
            ],
        },

        {
            name: RouteNames.allNode,
            path: "/allNode",
            meta: { title: "节点管理", icon: "UserFilled" },
            redirect: "/allNode",
            children: [
                {
                    name: RouteNames.allNode,
                    path: "/allNode",
                    meta: { title: "节点记录", icon: "UserFilled" },
                    component: () => import("@/pages/allNode/index.vue"),
                },
                {
                    name: RouteNames.allNodeUSDT,
                    path: "/allNodeUSDT",
                    meta: { title: "节点USDT记录", icon: "UserFilled" },
                    component: () => import("@/pages/allNode/allNodeUSDT.vue"),
                },
                {
                    name: RouteNames.allNodeHF,
                    path: "/allNodeHF",
                    meta: { title: "节点HF记录", icon: "UserFilled" },
                    component: () => import("@/pages/allNode/allNodeHF.vue"),
                },
            ],
        },

        {
            name: RouteNames.pledgeHF,
            path: "/pledgeHF",
            meta: { title: "质押HF", icon: "UserFilled" },
            redirect: "/pledgeHF",
            children: [
                {
                    name: RouteNames.allDao,
                    path: "/allDao",
                    meta: { title: "DAO成员", icon: "UserFilled" },
                    component: () => import("@/pages/pledgeHF/allDao.vue"),
                },
                {
                    name: RouteNames.allDaoHF,
                    path: "/allDaoHF",
                    meta: { title: "DAO分红", icon: "UserFilled" },
                    component: () => import("@/pages/pledgeHF/allDaoHF.vue"),
                },
                {
                    name: RouteNames.pledgeHF,
                    path: "/pledgeHF",
                    meta: { title: "质押列表", icon: "UserFilled" },
                    component: () => import("@/pages/pledgeHF/index.vue"),
                },
                {
                    name: RouteNames.allStakeRefReward,
                    path: "/allStakeRefReward",
                    meta: { title: "质押HF邀请奖列表", icon: "UserFilled" },
                    component: () =>
                        import("@/pages/pledgeHF/allStakeRefReward.vue"),
                },
                {
                    name: RouteNames.allStakePlan,
                    path: "/allStakePlan",
                    meta: { title: "质押配置列表", icon: "UserFilled" },
                    component: () =>
                        import("@/pages/pledgeHF/allStakePlan.vue"),
                },
            ],
        },

        {
            name: RouteNames.parameter,
            path: "/parameter",
            meta: { title: "参数配置", icon: "Flag" },
            component: () => import("@/pages/parameter/index.vue"),
        },

        {
            name: RouteNames.priceList,
            path: "/priceList",
            meta: { title: "价格列表", icon: "Ticket" },
            component: () => import("@/pages/priceList/index.vue"),
        },

        {
            name: RouteNames.allTransfer,
            path: "/allTransfer",
            meta: { title: "转账列表", icon: "Management" },
            component: () => import("@/pages/allTransfer/index.vue"),
        },
        {
            name: RouteNames.allSwap,
            path: "/allSwap",
            meta: { title: "交易列表", icon: "Checked" },
            component: () => import("@/pages/allSwap/index.vue"),
        },

        {
            name: RouteNames.addrs,
            path: "/addrs",
            meta: { title: "HF持币地址", icon: "Ticket" },
            component: () => import("@/pages/addrs/index.vue"),
        },

        {
            name: RouteNames.informationlist,
            path: "/informationlist",
            meta: { title: "资讯列表", icon: "Opportunity" },
            component: () => import("@/pages/informationlist/index.vue"),
        },
        {
            name: RouteNames.announcement,
            path: "/announcement",
            meta: { title: "公告列表", icon: "Flag" },
            component: () => import("@/pages/announcement/index.vue"),
        },
    ],
};
